/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.bean.util.erp;


import com.openbravo.bean.erp.OrderLine;

/**
 *
 * @author Administrator
 */
public class OrderLine_P{
    protected String m_iLine;
    protected String productName;//产品名称
    protected String attsetinstDesc;//关联属性

    protected String multiply;
    protected String price;//实售价
    protected String priceRate;
    protected double subTax;//税小计
    private double subTotal;//末含税小计
    private double total;//含税小计
    protected String defaultPrice;

    protected boolean isPrefSell;
    protected String consulMultiply;

    protected String buyPrice;
    private String sellPrice;
    private String customerPrice;
    private String code;
    
    

    private int pageIndex;

    public OrderLine_P(OrderLine inLine){
       m_iLine=String.valueOf(inLine.getOrderLine());
       productName=inLine.getProductName();
       attsetinstDesc=inLine.getProductAttSetInstDesc();
       if(attsetinstDesc!=null&&!attsetinstDesc.isEmpty())
    	   productName=productName+"-"+attsetinstDesc;
       multiply=OrderLineHelper.printMultiply(inLine);
       price=OrderLineHelper.printPrice(inLine);
       priceRate=OrderLineHelper.printPriceRate(inLine);
       subTax=OrderLineHelper.getTax(inLine);
       subTotal=OrderLineHelper.getSubValue(inLine);
       total=OrderLineHelper.getValue(inLine);
       defaultPrice=OrderLineHelper.printDefaultPrice(inLine);
       consulMultiply=OrderLineHelper.printConsulMultiply(inLine);
       buyPrice=inLine.getProductBuyPrice();
       sellPrice=inLine.getProductSellPrice();
       sellPrice=inLine.getProductCustomerPrice();
       isPrefSell=inLine.isIsPrefSell();
       pageIndex=inLine.getPageIndex();
       code=inLine.getProductCode();
    }

    public String getAttsetinstDesc() {
        return attsetinstDesc;
    }

    public String getBuyPrice() {
        return buyPrice;
    }

    public String getConsulMultiply() {
        return consulMultiply;
    }

    public String getCustomerPrice() {
        return customerPrice;
    }

    public String getDefaultPrice() {
        return defaultPrice;
    }

    public boolean isIsPrefSell() {
        return isPrefSell;
    }

    public String getM_iLine() {
        return m_iLine;
    }

    public String getMultiply() {
        return multiply;
    }

    public String getPrice() {
        return price;
    }

    public String getPriceRate() {
        return priceRate;
    }

    public String getProductName() {
        return productName;
    }

    public String getSellPrice() {
        return sellPrice;
    }

    public double getSubTax() {
        return subTax;
    }

    public double getSubTotal() {
        return subTotal;
    }

    public double getTotal() {
        return total;
    }

    public int getPageIndex() {
        return pageIndex;
    }

	public String getCode() {
		return code;
	}
}
